<!--#include file="./top.asp"-->
<%
dim rs_rpt_eu, str_rpt_eu

set rs_rpt_eu = server.CreateObject("ADODB.Recordset")
str_rpt_eu = "select * from rpt_eu where stu_id ='" & request.QueryString("stu_id") & "'"
rs_rpt_eu.open str_rpt_eu, conn, 1, 3

if rs_rpt_eu.eof then
	rs_rpt_eu.addnew
	rs_rpt_eu.fields("stu_id") = request.QueryString("stu_id")
	rs_rpt_eu.update
	rs_rpt_eu.close
	rs_rpt_eu.open str_rpt_eu, conn, 1, 3
end if

for i = 1 to rs_rpt_eu.fields.count - 1
	response.Write "rs_rpt_eu_" & i & " = " & request.Form("rs_rpt_eu_" & i) & "<br />"
	rs_rpt_eu.fields(i) = request.Form("rs_rpt_eu_" & i)
next
rs_rpt_eu.update

%>

</body>
</html>
<%
	rs_rpt_eu.close
	set rs_rpt_eu = nothing
	call CloseConn()
	response.Redirect ("./rpt_eu.asp?stu_id=" & request.QueryString("stu_id"))
%>